﻿using GameFramework;
using System;
using UnityEngine;

namespace DTFramework.Entity
{
    [Serializable]
    public class EntityData : IReference
    {
        [SerializeField] int m_Id;
        public int UniqueId { get; protected set; }
        public int Id { get => m_Id; set => m_Id = value; }
        public virtual int TypeId { get; set; }
        public Vector3 Position { get; set; } = Vector3.zero;
        public Quaternion Rotation { get; set; } = Quaternion.identity;
        public Vector3 Scale { get; set; } = Vector3.one;
        public EntityData()
        {
        }
        public EntityData(int id)
        {
            m_Id = id;
        }
        public virtual void Clear()
        {
            m_Id = 0;
        }
    }
}
